package com.controller;

import javax.annotation.Resource;

import com.dao.SalaryMapper;
import com.pojo.Salary;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.dao.EmployeeDao;
import com.dao.RewardDao;
import com.dao.UserDao;
import com.pojo.Employee;
import com.pojo.Reward;

@RestController
public class Test {
	@Resource
	private EmployeeDao dao;
	@Resource
	private UserDao uDao;

	@RequestMapping("getOne")
	public String controlB() {
		Employee emp = dao.getOne();
		System.out.println(emp);
		return emp.getE_username();
	}

}
